﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FACUI.BasicClass
{
    public static class CfgManager
    {
        public static readonly CfgNode RootNode = new CfgNode(@"\");

        public static bool AddStationCfgNode(string stationName)
        {
            return RootNode.AddSubNode(stationName);
        }

        public static bool AddStationCfgNode(CfgNode staCfgNode)
        {
            return RootNode.AddSubNode(staCfgNode);
        }

        public static CfgNode GetStationCfgNode(string stationName)
        {
            return GetStationCfgNode(stationName, false);
        }

        public static CfgNode GetStationCfgNode(string stationName, bool createIfNotExist)
        {
            return RootNode.GetSubNode(stationName, createIfNotExist);
        }
    }
}

